<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		新页面
		
		<button id="btn1" onclick="test1()">测试1</button>
		
		<script type="text/javascript">
			function test1()
			{
				window.close();
				
				window.opener.document.body.style.background="red";
			}
		</script>
	</body>
</html>
